WriteEdition
WriteEdition Write data to an edition
#include <Editions.h> Edition Manager
OSErr WriteEdition ( whichEdition, whichFormat,
*buffPtr, buffLen);
EditionRefNum whichEdition ; is the reference number for the edition.
FormatType whichFormat ; indicates the format type that you want to write.
const void *buffPtr; is a pointer to the buffer that you are writing into
the edition.
Size buffLen ; returns the reference number for the edition.
returns Error Code; 0=no error
Use the WriteEdition function to write data to an edition. This function
begins writing at the current mark for the specified format.
whichEdition is the reference number for the edition.
whichFormat indicates the format type that you want to write.
buffPtr is a pointer to the buffer that you are writing into the edition.
buffLen is the number of bytes that you want to write. If the data cannot be
entirely written to the edition, the WriteEdition function returns
an error.
Returns: an operating system Error Code.
noErr (0) No error
rfNumErr (-51) Bad edition reference number
editionMgrInitErr (-450) Manager not initialized